home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / modem / tspfon30.zip / PFON.BAT < prev    next >
DOS Batch File  |  1988-08-10  |  2KB  |  68 lines

  1. echo off
  2. rem PFON.BAT ver 1.3
  3. echo .
  4. echo ********************************************************************
  5. echo * ProComm Plus pcplus.FON file amend batch by Timo Salmi 10-Aug-88 *
  6. echo ********************************************************************
  7. echo .
  8. if not "%1"=="" goto help
  9. if not exist pcplus.fon goto virhe1
  10. if not exist pcpfon.exe goto virhe2
  11. echo Your PCPLUS.FON file is about to be rewritten
  12. echo Press break to abort, any other key to proceed
  13. pause
  14. copy/v pcplus.fon pcplus.bck
  15. if exist pcplus.fon echo old PCPLUS.FON backed up as PCPLUS.BCK
  16. if exist pcplus.tmp del pcplus.tmp
  17. pcpfon pcplus.fon pcplus.tmp
  18. if errorlevel 1 goto virhe4
  19. if exist pcplus.tmp del pcplus.fon
  20. if exist pcplus.fon goto virhe3
  21. copy/v pcplus.tmp pcplus.fon
  22. if exist pcplus.fon echo PCPLUS.TMP copied to PCPLUS.FON
  23. if exist pcplus.tmp del pcplus.tmp
  24. if not exist pcplus.tmp echo PCPLUS.TMP deleted
  25. echo .
  26. echo **************************************************************
  27. echo * Your PCPLUS.FON file has been rewritten. Bye from PFON.BAT *
  28. echo **************************************************************
  29. goto ulos
  30.  
  31. :help
  32. echo PFON converts pcplus.fon call logging file by
  33. echo  1) Calculating the missing elapsed time whenever possible
  34. echo  2) Changing the dates mm/dd/yy into a weekday format wwddmmyy
  35. echo PFON also displays the total elapsed time and the total number of calls
  36. echo .
  37. echo The old pcplus.fon version is backed up as pcplus.bck
  38. echo .
  39. echo PFON takes no parameters. To execute it just write PFON
  40. echo .
  41. goto ulos
  42.  
  43. :virhe1
  44. echo .
  45. echo PFON.BAT aborted: PCPLUS.FON file not found
  46. echo .
  47. goto ulos
  48.  
  49. :virhe2
  50. echo .
  51. echo PFON.BAT aborted: PCPFON.EXE program not found
  52. echo .
  53. goto ulos
  54.  
  55. :virhe3
  56. echo .
  57. echo PFON.BAT aborted: Rewrite of PCPFON.FON denied by MsDos
  58. echo .
  59. goto ulos
  60.  
  61. :virhe4
  62. echo .
  63. echo PFON.BAT aborted: PCPFON.EXE error termination
  64. echo .
  65. goto ulos
  66.  
  67. :ulos
  68. echo on